﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserInfoWebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.IsAuthenticated)
        {
            if (HttpContext.Current.User.IsInRole("admin"))
            {
                ((HyperLink)LoginView1.FindControl("hpAdmin")).Visible = true;
            }
        }
    }
}